package com.alogic.swagger.core;

import com.alogic.xscript.ExecuteWatcher;
import com.alogic.xscript.Logiclet;
import com.alogic.xscript.LogicletContext;
import com.alogic.xscript.doc.XsObject;
import com.alogic.xscript.plugins.Segment;
import com.anysoft.util.Properties;

/**
 * Components
 *
 * @since 1.6.13.7 [20200812 duanyy] <br>
 */
public class SwaggerComponent extends Segment {
    public SwaggerComponent(String tag, Logiclet p) {
        super(tag, p);
    }

    @Override
    public void configure(Properties p){
        super.configure(p);
    }

    @Override
    protected void onExecute(XsObject root, XsObject current, LogicletContext ctx, ExecuteWatcher watcher) {
        XsObject newCurrent = current.getObjectChild("components",true);
        super.onExecute(root,newCurrent,ctx,watcher);
    }
}